/**
 * Created by Veronica on 2017/3/25.
 */
/*使用List*/
package app14;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Scanner;

public class ListDemo1 {
    public static void main(String[] args) {
        List myList = new ArrayList();
        String s1 = "Hello";
        String s2 = "Hello";
        myList.add(100);
        myList.add(s1);
        myList.add(s2);
        myList.add(s1);
        myList.add(1);
        myList.add(2,"World");
        myList.set(3,"Yes");
        myList.add(null);
        System.out.println("Size : "+ myList.size());
        for (Object object : myList){
            System.out.println(object);
        }
    }
}
